Always-on-display method and electronic device

ABSTRACT

Embodiments of this application provide an always-on-display method and an electronic device. The method includes: displaying, by an electronic device, an always-on-display screen, where the always-on-display screen includes a first image of a first display object; in response to detecting by the electronic device that an external object satisfies a first preset condition, displaying, by the electronic device, a second image of a second display object, where the second image is different from the first image. In the embodiments of this application, the always-on-display screen displayed by the electronic device can change according to the external object. When the external object satisfies a preset condition, a corresponding image or motion video is displayed, so that the always-on-display screen can be flexibly displayed.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation of U.S. patent application Ser. No.17/801,478, filed on Aug. 22, 2022, which is a national stage ofInternational Application No. PCT/CN2021/114607, filed on Aug. 25, 2021,which claims priority to Chinese Patent Application No. 202010916054.8,filed on Sep. 3, 2020. All of the aforementioned applications are herebyincorporated by reference in their entireties.

TECHNICAL FIELD

This application relates to the field of terminal technologies, and inparticular, to an always-on-display method and an electronic device.

BACKGROUND

As electronic devices develop, their functions are ever diversified. Forexample, for an electronic device with an always-on-display(Always-On-Display, AOD) function, when the electronic device isscreen-off, time and other information are displayed on analways-on-display screen, so that a user can check the time on theelectronic device at any time with no need to repeatedly light thescreen. This reduces power consumption of the electronic device andimproves user experience.

However, the current always-on-display screen is rather monotonous in nosupport of flexible display.

SUMMARY

Embodiments of this application provide an always-on-display method andan electronic device to implement flexible display of analways-on-display screen.

According to a first aspect, an embodiment of this application providesan always-on-display method, including: displaying, by an electronicdevice, an always-on-display screen, where the always-on-display screenincludes a first image of a first display object; in response todetecting by the electronic device that an external object satisfies afirst preset condition, displaying, by the electronic device, a secondimage of a second display object, where the second image is differentfrom the first image.

The first display object may be the same as or different from the seconddisplay object. The second image may be a motion video or a still image.

In this solution, the always-on-display screen displayed by theelectronic device can change according to the external object. When theexternal object satisfies a preset condition, a corresponding image ormotion video is displayed, so that the always-on-display screen can beflexibly displayed.

In a possible implementation, the electronic device may end display ofthe second image after displaying the second image, and in anotherpossible implementation, after the electronic device displays the secondimage, the method further includes: maintaining display of the secondimage if the electronic device has detected that the external objectsatisfies a second preset condition; and resuming display of the firstimage if the electronic device has not detected that the external objectsatisfies a second preset condition.

The first preset condition may be the same as or different from thesecond preset condition.

This solution provides a specific implementation of the electronicdevice after the second image is displayed. For example, if the externalobject satisfies the second preset condition, display of the secondimage is maintained, so that the electronic device continuously respondsto the external object satisfying the second preset condition, therebyensuring durability of display of the second image on thealways-on-display screen and improving user experience. For example, ifthe external object does not satisfy the second preset condition,display of the first image is resumed, so that the electronic device isrestored to an original state, which reduces power consumption of theelectronic device.

If the second image is a motion video, in a possible implementation, themaintaining display of the second image includes: maintaining, by theelectronic device, display of the last frame image of the motion video;and in another possible implementation, the maintaining display of thesecond image may alternatively be: repeatedly playing the motion video.

If the last frame image of the motion video is different from the firstimage, before the resuming display of the first image, the methodfurther includes: displaying, by the electronic device, a transitionimage for linking the second image with the first image. This solutionenables gradual changing from the second image back to the first image,which realizes smooth display of the always-on-display screen.

In a possible implementation, before the displaying the first image, themethod further includes: displaying, by the electronic device, aninitial image, where the initial image is used for linking display ofthe first image. This solution allows the always-on-display screen to bedisplayed more flexibly.

The first preset condition and the second preset condition in theforegoing solution include one or more of the following: user waving,nodding, shaking the head, gazing at screen of the electronic device,tapping screen of the electronic device, or shaking the electronicdevice, or an external device being connected.

In a possible implementation, before the displaying, by the electronicdevice, a second image of a second display object, the method furtherincludes: obtaining, by the electronic device, information about theexternal object, and determining, by the electronic device, a displayparameter of the second image based on the information about theexternal object; and the displaying, by the electronic device, a secondimage of a second display object includes: displaying, by the electronicdevice, the second image according to the display parameter. Optionally,the display parameter of the second image includes one or more of thefollowing: a header orientation parameter of the second display objectin the second image, a posture parameter of the second display object inthe second image, a display frame rate of the second image, a displayposition parameter of the second display object in the second image, astyle of the second display object in the second image, and a waveformparameter of the second display object in the second image. In thissolution, the display parameter of the second image is determined, sothat the always-on-display screen is displayed more flexibly.

The information about the external object may be operation informationof the external object (for example, a user) or information sent by theexternal object (for example, an external device). The operationinformation of the external object includes one or more of thefollowing: a gaze position of the external object on the screen of theelectronic device, a strength parameter of an action of the externalobject, strength of tapping by a user on the screen, and a direction inwhich the external object approaches the electronic device. The actionof the external object includes, but is not limited to, at least one ofthe following: waving, nodding, shaking the head, turning the head,making an OK gesture, making a scissor hand gesture, making a smilingface, making a crying face, and making a surprise face. For example,when the action of the external object is waving, the strength parameterof the action of the external object may be a speed of waving.

In a possible implementation, the information about the external objectincludes biological information sent by the external device; thedetermining, by the electronic device, a display parameter of the secondimage based on the information about the external object includes:determining, by the electronic device, a display frame rate of thesecond image based on the biological information; and the determining,by the electronic device, the second image according to the displayparameter includes: displaying, by the electronic device, the secondimage at the display frame rate.

The biological information may be one or more of the following: heartrate, calories, and number of steps. The information sent by theexternal device is not limited to the heart rate in the example, but mayalternatively be other biological information, weather information, orlocation information. The other biological information may include, butis not limited to, at least one of the following: calories and number ofsteps. The weather information may include, but is not limited to, atleast one of the following: temperature and weather. The weather is, forexample, light rain, sunny, cloudy, or heavy snow.

In this solution, the electronic device flexibly displays thealways-on-display screen through interaction between the external deviceand the electronic device, allowing the user to obtain biologicalinformation through the always-on-display screen. In this way, not onlythe always-on-display screen can be flexibly displayed, but alsofunctionality of the electronic device is improved.

In a possible implementation, the information about the external objectincludes style information sent by the external device; the determining,by the electronic device, a display parameter of the second image basedon the information about the external object includes: determining, bythe electronic device, a style of the second display object based on thestyle information; and the determining, by the electronic device, thesecond image according to the display parameter includes: displaying, bythe electronic device, the second display object in the style, where thesecond image includes the second display object displayed in the style.

This solution allows an object displayed on the always-on-display screento change its style with the changing of the external device,implementing flexible display of the always-on-display screen.

In a possible implementation, before the electronic device displays thefirst image, the method further includes: obtaining, by the electronicdevice, an interactive mode selection instruction input by a user, anddetermining, by the electronic device, the first display object matchingthe interactive mode according to the interactive mode selectioninstruction.

This solution provides a specific implementation of settings of thealways-on-display screen. In this specific implementation, a user mayselect an interactive mode as required.

In a possible implementation, the electronic device may determine thefirst preset condition and the second preset condition based on theinteractive mode. The interactive mode may correspond to a plurality offirst preset conditions and/or a plurality of second preset conditions.Different first preset conditions may correspond to different secondimages or correspond to the same second image. Different second presetconditions may correspond to different transition images or correspondto the same transition image.

In a possible implementation, the electronic device may determine thefirst preset condition and the second preset condition based on thefirst display object. The display object may correspond to a pluralityof first preset conditions and/or a plurality of second presetconditions. Different first preset conditions may correspond todifferent second images or correspond to the same second image.Different second preset conditions may correspond to differenttransition images or correspond to the same transition image.

According to a second aspect, an embodiment of this application providesan electronic device, including one or more displays, one or morememories, and one or more processors; where the one or more memoriesstore one or more programs, and when the one or more processors executethe one or more programs, the electronic device is enabled to implementthe method according to the first aspect or any possible implementationof the first aspect.

According to a third aspect, an embodiment of this application providesa non-transitory computer-readable storage medium storing a computerinstruction, where the computer instruction is used to enable thecomputer to execute the method according to the first aspect or anypossible implementation of the first aspect.

According to a fourth aspect, an embodiment of this application providesa graphical user interface GUI, where the graphical user interface isstored in an electronic device, the electronic device includes adisplay, a memory, and a processor, and the processor is configured toexecute a computer program stored in the memory, where the graphicaluser interface includes a graphical user interface displayed when theelectronic device executes the method according to the first aspect orany possible implementation of the first aspect.

According to a fifth aspect, an embodiment of this application providesa computer program product, where the computer program product includesan instruction, when the instruction is executed, a computer is enabledto execute the method according to any one of the first aspect or anypossible implementation of the first aspect.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic diagram of a current always-on-display screen;

FIG. 2 is a schematic structural diagram of an electronic deviceaccording to an embodiment of this application;

FIG. 3 is a flowchart of an always-on-display method according to anembodiment of this application;

FIG. 4A to FIG. 4E are a schematic diagram of screens ofalways-on-display setting according to an embodiment of thisapplication;

FIG. 5A to FIG. 5C are a schematic diagram of displaying an initialimage according to an embodiment of this application;

FIG. 6A to FIG. 6F are a first schematic diagram of changing of analways-on-display screen according to an embodiment of this application;

FIG. 7A to FIG. 7F are a second schematic diagram of changing of analways-on-display screen according to an embodiment of this application;

FIG. 8A to FIG. 8F are a third schematic diagram of changing of analways-on-display screen according to an embodiment of this application;

FIG. 9A to FIG. 9E are a fourth schematic diagram of changing of analways-on-display screen according to an embodiment of this application;

FIG. 10A to FIG. 10E are a fifth schematic diagram of changing of analways-on-display screen according to an embodiment of this application;

FIG. 11A to FIG. 11E are a sixth schematic diagram of changing of analways-on-display screen according to an embodiment of this application;

FIG. 12A to FIG. 12E are a seventh schematic diagram of changing of analways-on-display screen according to an embodiment of this application;

FIG. 13A to FIG. 13F are an eighth schematic diagram of changing of analways-on-display screen according to an embodiment of this application;

FIG. 14A to FIG. 14D are a ninth schematic diagram of changing of analways-on-display screen according to an embodiment of this application;

FIG. 15A is a schematic diagram of pixels that are lit to display avirtual feather which is still according to an embodiment of thisapplication;

FIG. 15B is a schematic diagram of pixels that are lit to display avirtual feather which is floating according to an embodiment of thisapplication;

FIG. 16A to FIG. 16C are a tenth schematic diagram of changing of analways-on-display screen according to an embodiment of this application;

FIG. 17A to FIG. 17C are an eleventh schematic diagram of changing of analways-on-display screen according to an embodiment of this application;

FIG. 18A to FIG. 18C are a twelfth schematic diagram of changing of analways-on-display screen according to an embodiment of this application;

FIG. 19A to FIG. 19C are a thirteenth schematic diagram of changing ofan always-on-display screen according to an embodiment of thisapplication;

FIG. 20 is a schematic structural diagram of an always-on-displayapparatus according to an embodiment of this application; and

FIG. 21 is a schematic structural diagram of an electronic deviceaccording to an embodiment of this application.

DESCRIPTION OF EMBODIMENTS

The following details implementations of the embodiments with referenceto the accompanying drawings.

As shown in FIG. 1 , when an electronic device is screen-off, theelectronic device may display information such as time, date, andbattery power on an always-on-display screen. In this way, a user cancheck information such as time, date, and battery power on theelectronic device at any time. However, in the solution shown in FIG. 1, the always-on-display screen is rather monotonous in no support offlexible display. To realize flexible display of the always-on-displayscreen, embodiments of this application provide an always-on-displaymethod which displays an always-on-display screen according to changingof external interaction.

The always-on-display method provided in the embodiments of thisapplication may be applied to electronic devices such as mobile phones,tablet computers, smart watches, and computers. For example, FIG. 2 is aschematic structural diagram of an electronic device according to anembodiment of this application. Referring to FIG. 2 , the electronicdevice 100 may include a processor 110, an external memory interface120, an internal memory 121, a universal serial bus (universal serialbus, USB) interface 130, a charge management module 140, a powermanagement module 141, a battery 142, an antenna 1, an antenna 2, amobile communications module 150, a wireless communications module 160,an audio module 170, a loudspeaker 170A, a telephone receiver 170B, amicrophone 170C, an earphone jack 170D, a sensor module 180, a key 190,a motor 191, an indicator 192, a camera 193, a display 194, a subscriberidentity module (subscriber identification module, SIM) card interface195, and the like. The sensor module 180 may include a pressure sensor180A, a gyro sensor 180B, a barometric pressure sensor 180C, a magneticsensor 180D, an acceleration sensor 180E, a distance sensor 180F, anoptical proximity sensor 180G, a fingerprint sensor 180H, a temperaturesensor 180J, a touch sensor 180K, an ambient light sensor 180L, a boneconduction sensor 180M, and the like.

It can be understood that the structure illustrated in this embodimentof this application does not constitute a specific limitation on theelectronic device 100. In some other embodiments of this application,the electronic device 100 may include more or fewer components thanthose shown in the figure, or combine some components, or split somecomponents, or have a different component arrangement. The componentsshown in the figure may be implemented by using hardware, software, or acombination of software and hardware.

The processor 110 may include one or more processing units. For example,the processor 110 may include an application processor (applicationprocessor, AP), a modem processor, a graphics processing unit (graphicsprocessing unit, GPU), an image signal processor (image signalprocessor, ISP), a controller, a video codec, a digital signal processor(digital signal processor, DSP), a baseband processor, a neural-networkprocessing unit (neural-network processing unit, NPU), and/or the like.Different processing units may be separate devices or be integrated intoone or more processors.

The controller may generate an operation control signal according to aninstruction operation code and a timing signal, to complete control ofinstruction fetching and execution.

A memory may be further provided in the processor 110 to storeinstructions and data. In some embodiments, the memory in the processor110 is a cache memory. The memory may store instructions or data thatthe processor 110 has recently used or used repeatedly. If the processor110 needs to use the instruction or the data again, the processor 110may directly invoke the instruction or the data from the memory, therebyavoiding repeated access, reducing waiting time of the processor 110,and improving system efficiency.

In some embodiments, the processor 110 may include one or moreinterfaces. The interface may include an inter-integrated circuit(inter-integrated circuit, I2C) interface, an inter-integrated circuitsound (inter-integrated circuit sound, I2S) interface, a pulse codemodulation (pulse code modulation, PCM) interface, a universalasynchronous receiver/transmitter (universal asynchronousreceiver/transmitter, UART) interface, a mobile industry processorinterface (mobile industry processor interface, MIPI), a general-purposeinput/output (general-purpose input/output, GPIO) interface, asubscriber identity module (subscriber identity module, SIM) interface,a universal serial bus (universal serial bus, USB) interface, and/or thelike.

The I2C interface is a bidirectional synchronous serial bus whichincludes a serial data line (serial data line, SDA) and a serial clockline (derail clock line, SCL). In some embodiments, the processor 110may include multiple I2C buses. The processor 110 may be coupled to thetouch sensor 180K, a charger, a flash, the camera 193, and the like viadifferent I2C bus interfaces. For example, the processor 110 may becoupled to the touch sensor 180K via the I2C interface, so that theprocessor 110 and the touch sensor 180K communicate through the I2C businterface to implement a touch function of the electronic device 100.

The I2S interface may be used for audio communication. In someembodiments, the processor 110 may include multiple I2S buses. Theprocessor 110 may be coupled to the audio module 170 via an I2S bus toimplement communication between the processor 110 and the audio module170. In some embodiments, the audio module 170 may transmit an audiosignal to the wireless communications module 160 through the I2Sinterface, so as to implement a function of answering calls through aBluetooth earphone.

The PCM interface may also be used for audio communication to sample,quantize, and encode an analog signal. In some embodiments, the audiomodule 170 and the wireless communications module 160 may be coupled viaa PCM bus interface. In some embodiments, the audio module 170 may alsotransmit an audio signal to the wireless communications module 160through the PCM interface, so as to implement a function of answeringcalls through a Bluetooth earphone. Both the I2S interface and the PCMinterface may be used for audio communication.

The UART interface is a universal serial data bus used for asynchronouscommunication. The bus may be a bidirectional communications bus thatconverts to-be-transmitted data between serial communication andparallel communication. In some embodiments, the UART interface istypically configured to connect the processor 110 to the wirelesscommunications module 160. For example, the processor 110 communicateswith a Bluetooth module of the wireless communications module 160through the UART interface, to implement a Bluetooth function. In someembodiments, the audio module 170 may transmit an audio signal to thewireless communications module 160 through the UART interface, so as toimplement a function of playing music through a Bluetooth earphone.

The MIPI interface may be configured to connect the processor 110 to thedisplay 194, the camera 193, and other peripheral devices. The MIPIinterface includes a camera serial interface (camera serial interface,CSI), a display serial interface (display serial interface, DSI), andthe like. In some embodiments, the processor 110 communicates with thecamera 193 through the CSI interface, thereby implementing a shootingfunction of the electronic device 100. The processor 110 communicateswith the display 194 through the DSI interface, thereby implementing adisplay function of the electronic device 100.

It may be understood that the interface connection relationship betweenthe modules illustrated in this embodiment of this application is merelyan example for description, and constitutes no limitation on thestructure of the electronic device 100. In some other embodiments ofthis application, the electronic device 100 may alternatively use aninterface connection manner different from that in the foregoingembodiment, or a combination of a plurality of interface connectionmanners.

The mobile communications module 150 may provide wireless communicationsolutions including 2G, 3G, 4G, and 5G for application to the electronicdevice 100. The mobile communications module 150 may include at leastone filter, a switch, a power amplifier, a low noise amplifier (lownoise amplifier, LNA), and the like. The mobile communications module150 may receive an electromagnetic wave through the antenna 1, performprocessing such as filtering and amplification on the receivedelectromagnetic wave, and transmit the processed electromagnetic wave tothe modem processor for demodulation. The mobile communications module150 may also amplify a signal modulated by the modem processor, andconvert the signal into an electromagnetic wave which is transmitted bythe antenna 1. In some embodiments, at least some functional modules ofthe mobile communications module 150 may be provided in the processor110. In some embodiments, at least some functional modules of the mobilecommunications module 150 and at least some modules of the processor 110may be provided in a same device.

The modem processor may include a modulator and a demodulator. Themodulator is configured to modulate a low frequency baseband signal thatis to be sent into a medium or high frequency signal. The demodulator isconfigured to demodulate a received electromagnetic wave signal into alow frequency baseband signal. Then, the demodulator sends the lowfrequency baseband signal obtained through demodulation to the basebandprocessor for processing. After being processed by the basebandprocessor, the low frequency baseband signal is transferred to theapplication processor. The application processor outputs a sound signalthrough an audio device (not limited to the loudspeaker 170A, thetelephone receiver 170B, and the like), or displays an image or a videothrough the display 194. In some embodiments, the modem processor may bea separate device. In some other embodiments, the modem processor may beseparate from the processor 110 and provided in a same device togetherwith the mobile communications module 150 or another functional module.

The wireless communications module 160 may provide wirelesscommunication solutions for application to the electronic device 100,which include, for example, wireless local area network (wireless localarea networks, WLAN) (for example, Wi-Fi network), BT, global navigationsatellite system (global navigation satellite system, GNSS), frequencymodulation (frequency modulation, FM), near field communication (nearfield communication, NFC), and infrared (infrared, IR). The wirelesscommunications module 160 may be one or more devices integrating atleast one communication processing module. The wireless communicationsmodule 160 receives an electromagnetic wave through the antenna 2,performs frequency modulation and filtering processing on theelectromagnetic wave signal, and transmits the processed signal to theprocessor 110. The wireless communications module 160 may also receive ato-be-transmitted signal from the processor 110, perform frequencymodulation and amplification on the signal, and transmit the signal asan electromagnetic wave by using the antenna 2.

In some embodiments, in the electronic device 100, the antenna 1 iscoupled to the mobile communications module 150, and the antenna 2 iscoupled to the wireless communications module 160, so that theelectronic device 100 can communicate with a network and other devicesby using a wireless communications technology. The wirelesscommunications technology may include global system for mobilecommunications (global system for mobile communications, GSM), generalpacket radio service (general packet radio service, GPRS), code divisionmultiple access (code division multiple access, CDMA), wideband codedivision multiple access (wideband code division multiple access,WCDMA), time-division code division multiple access (time-division codedivision multiple access, TD-SCDMA), long term evolution (long termevolution, LTE), BT, GNSS, WLAN, NFC, FM, IR technology, and/or thelike. The GNSS may include the global positioning system (globalpositioning system, GPS), global navigation satellite system (globalnavigation satellite system, GLONASS), Beidou navigation satellitesystem (beidou navigation satellite system, BDS), quasi-zenith satellitesystem (quasi-zenith satellite system, QZSS), and/or satellite basedaugmentation systems (satellite based augmentation systems, SBAS).

The electronic device 100 implements a display function by using theGPU, the display 194, the application processor, and the like. The GPUis an image processing microprocessor which is connected to the display194 and the application processor. The GPU is configured to performmathematical and geometric calculation, and is used for graphicsrendering. The processor 110 may include one or more GPUs that execute aprogram instruction to generate or change display information.

The display 194 is configured to display an image, a video, or the like.The display 194 includes a display panel. The display panel may be aliquid crystal display (liquid crystal display, LCD), an organiclight-emitting diode (organic light-emitting diode, OLED), anactive-matrix organic light emitting diode (active-matrix organic lightemitting diode, AMOLED), a flexible light-emitting diode (flexlight-emitting diode, FLED), a Miniled, a MicroLed, a Micro-oLed, aquantum dot light emitting diode (quantum dot light emitting diodes,QLED), or the like. In some embodiments, the electronic device 100 mayinclude one or N displays 194, where N is a positive integer greaterthan 1.

Optionally, the touch sensor may be disposed on the display, and thetouch sensor and the display 194 form a touchscreen, also referred to asa “touch screen”. The touch sensor is configured to detect a touchoperation applied on or near the touch sensor. The touch sensor maytransfer the detected touch operation to the application processor fordetermining a touch event type, and may provide a visual outputassociated with the touch operation through the display 194. The touchsensor may alternatively be disposed on a surface of the electronicdevice 100 at a location different from that of the display 194. Thetouch sensor may also be referred to as a touch panel or touch-sensitivesurface.

The electronic device 100 may implement a shooting function by using theISP, the camera 193, the video codec, the GPU, the display 194, theapplication processor, and the like.

The ISP is configured to process data fed back by the camera 193. Forexample, during photographing, a shutter is open, allowing light to betransmitted to a photosensitive element of the camera through a lens. Anoptical signal is converted into an electrical signal. Thephotosensitive element of the camera transfers the electrical signal tothe ISP for processing, so as to convert the electrical signal into animage visible to the naked eye. The ISP may further optimize noise,brightness, and skin color of the image using algorithms. The ISP mayfurther optimize parameters such as exposure and color temperature of ashooting scene. In some embodiments, the ISP may be disposed in thecamera 193.

The digital signal processor is configured to process digital signals,able to process not only digital image signals but also other digitalsignals. For example, when the electronic device 100 is selecting afrequency, the digital signal processor is configured to perform Fouriertransform and the like on frequency energy.

The video codec is configured to compress or decompress a digital video.The electronic device 100 may support one or more types of video codecs,so that the electronic device 100 can play or record videos in aplurality of coding formats, such as moving picture experts group(moving picture experts group, MPEG) 1, MPEG2, MPEG3, and MPEG4.

The NPU is a neural-network (neural-network, NN) computing processorwhich borrows the structure of biological neural networks, for example,borrowing the transfer mode between human brain neurons, to fast processinput information and which is also capable of continuous self-learning.The NPU may be used for implementing applications such as intelligentcognition of the electronic device 100, for example, image recognition,facial recognition, voice recognition, and text understanding.

The external memory interface 120 may be configured to connect anexternal storage card (for example, a Micro SD card) so as to extend astorage capacity of the electronic device 100. The external storage cardcommunicates with the processor 110 through the external memoryinterface 120 to implement a data storage function, for example, storefiles such as music files and video files in the external storage card.

The internal memory 121 may be configured to store computer executableprogram code which includes instructions. The internal memory 121 mayinclude a storage program area and a data storage area. The storageprogram area may store an operating system, an application programrequired by at least one function (for example, a sound play function oran image play function), and the like. The data storage area may storedata (for example, audio data and contacts) created during use of theelectronic device 100, and the like. In addition, the internal memory121 may include a high-speed random access memory or include anon-volatile memory, for example, at least one magnetic disk storagedevice, flash memory device, and universal flash storage (universalflash storage, UFS). By running the instructions stored in the internalmemory 121 and/or the instructions stored in the memory that is providedin the processor, the processor 110 executes various functionalapplications and data processing of the electronic device 100.

The electronic device 100 may use the audio module 170, the loudspeaker170A, the telephone receiver 170B, the microphone 170C, the earphonejack 170D, the application processor, and the like to implement an audiofunction, for example, music playing or sound recording.

The audio module 170 is configured to convert digital audio informationinto an analog audio signal output, and is also configured to convert ananalog audio input into a digital audio signal. The audio module 170 maybe further configured to encode and decode audio signals. In someembodiments, the audio module 170 may be provided in the processor 110,or some functional modules of the audio module 170 may be provided inthe processor 110.

The following describes the always-on-display method of this applicationby using specific embodiments.

FIG. 3 is a first flowchart of an always-on-display method according toan embodiment of this application. The method of this embodiment isapplied to an electronic device, and the electronic device is in ascreen-off state. Referring to FIG. 3 , the method of this embodimentincludes the following steps.

Step S301: The electronic device displays an always-on-display screen,where the always-on-display screen includes a first image of a firstdisplay object.

The first display object may be a virtual object such as a virtual deer,a virtual astronaut, a virtual feather, a virtual bird, or a virtualuser. The first display object may be set by a user or be systemdefault. For example, the electronic device may determine, according toan interactive mode selected by the user, the first display objectmatching the interactive mode, or determine, according to a theme orstyle selected by the user, the first display object matching the themeor style. The user may alternatively directly select one or more firstdisplay objects which are to be always on display.

It can be understood that, because an image on the always-on-displayscreen is displayed by lighting up some of pixels in thealways-on-display screen, to prevent the pixels in the screen frommalfunctioning due to long-time stay in a normally on state, thealways-on-display screen may be displayed with the first display objectin a changeable position.

Step S302: The electronic device has detected that an external objectsatisfies a first preset condition.

The external object may be a user or an external device. For example,the first preset condition may be a user operation, for example, userwaving, nodding, shaking the head, gazing at screen, tapping screen, orshaking the electronic device, or the first preset condition may be, forexample, establishment of a communication connection between theexternal device and the electronic device, or a distance from theexternal device to the electronic device being less than a presetdistance. The first preset condition may be determined according to theinteractive mode.

The first preset condition may be determined according to the firstdisplay object. To be specific, different first display objects maycorrespond to different first preset conditions. For example, when thefirst display object selected by the user is a virtual deer, the firstpreset condition may be user gazing at screen; and when the firstdisplay object selected by the user is a virtual feather, the firstpreset condition may be user shaking the electronic device.

Optionally, one first display object may correspond to a plurality offirst preset conditions. For example, when the first display objectselected by the user is a virtual astronaut, the first preset conditionmay be (1) user waving or (2) user tapping screen.

Step S303: The electronic device displays a second image of a seconddisplay object, where the second image is different from the firstimage.

The first display object may be the same as or different from the seconddisplay object. The second image of the second display object may be astill image or a motion video. The second image of the second displayobject may be stored in a server, may be stored in the electronicdevice, or may be stored in the external device. When one first displayobject corresponds to a plurality of first preset conditions, theplurality of first preset conditions may respectively correspond todifferent still images or motion videos. In this case, the electronicdevice may determine, according to a satisfied first preset condition,to display which image or motion video. For example, when the condition(1) user waving is satisfied, a first motion video of a virtualastronaut waving may be displayed; and when the condition (2) usertapping screen is satisfied, a second motion video that a virtualastronaut jumps may be displayed. For another example, when thecondition (1) gazing at the right side of the screen is satisfied, afirst motion video that a deer looks to the right may be displayed. Whenthe condition (2) gazing at the left side of the screen is satisfied, asecond motion video that a deer looks to the left may be displayed.

Optionally, the electronic device may determine a display parameter ofthe second image of the second display object according to the externalobject. For example, the electronic device may determine a displayparameter of the second image according to data detected by the externaldevice. For another example, the electronic device may determine adisplay parameter of the second image according to a user operation.

It can be understood that display positions of the second image of thesecond display object and the first image of the display object may bethe same or different, which are not limited herein.

The electronic device may end display of the second image after displayof the second image is completed. Optionally, the electronic device mayalternatively determine, according to whether a second preset conditionis satisfied, whether to end display of the second image.

For example, the method further includes the following step.

Step S304: The electronic device detects whether the external objectsatisfies a second preset condition.

If the electronic device has detected that the external object satisfiesthe second preset condition, the electronic device returns to step S303to maintain display of the second image. If the electronic device hasnot detected that the external object satisfies the second presetcondition, the electronic device returns to step S301 to end display ofthe second image and resume display of the first image. The electronicdevice may repeat the foregoing steps until the electronic device exitsthe always-on-display state.

The second preset condition may be the same as the first presetcondition or different from the first preset condition.

It can be understood that, when the second image is a motion video, themaintaining display of the second image may be maintaining display ofthe last frame image of the motion video or repeatedly playing themotion video.

Optionally, when display of the second image is ended and display of thefirst image is resumed, the electronic device may display a transitionimage for linking the second image with the first image. The transitionimage may be a still image or a motion video.

It can be understood that when the second image is a motion video, thetransition image for linking the first image with the second image is atransition image linking the last frame image of the motion video withthe first image, and the last frame image of the motion video isdifferent from the first image.

Optionally, when entering always-on-display, the electronic device maydisplay an initial image for linking display of the first image.

For example, before step 301, the method may further include step 300:displaying an initial image. The initial image may be a still image or amotion video. For example, when switching from a lock screen to analways-on-display screen, the electronic device may display an initialimage for linking the screen-lock screen with the first image. Foranother example, when switching from a lock screen to analways-on-display screen, the electronic device may display an initialimage for linking a wallpaper screen with the first image.

In this embodiment, the always-on-display screen displayed by theelectronic device can change according to the external object. When theexternal object satisfies a preset condition, a corresponding image ormotion video is displayed, so that the always-on-display screen can beflexibly displayed.

The following describes the foregoing method in detail by using specificexamples.

FIG. 4A to FIG. 4E show screens of always-on-display setting accordingto an embodiment of this application. As shown in FIG. 4A, a screen 401is an always-on-display settings screen which displays an image of avirtual astronaut, indicating that a currently set first display objectis the virtual astronaut. A user may select one or more interactivemodes from an interactive mode list 402. The electronic device maydetermine a first display object according to the interactive mode(s)selected by the user. For example, when the user selects gazing atscreen or tapping screen, the electronic device may determine that thefirst display object corresponding to the interactive mode(s) is avirtual deer. Optionally, as shown in FIG. 4B to FIG. 4D, the electronicdevice may display a preview screen (for example, screens 403 to 405) ofthe always-on-display screen, so that the user can view a displayeffect. In response to an operation of the user tapping a confirmcontrol (for example, an icon 406 in the preview screen), the electronicdevice changes the first display object. In this case, as shown in FIG.4E, the image of the virtual astronaut displayed in thealways-on-display settings screen (screen 407) is updated to an image ofthe virtual deer.

Example 1: Display Object Being the Virtual Deer

As shown in FIG. 5A to FIG. 5C, when the electronic device entersalways-on-display, the electronic device may display an initial imagelinked to the first image. As shown in screens 501 to 503, theelectronic device displays an initial image of the virtual deer walkingtowards the center of a forest.

As shown in FIG. 6A, the electronic device displays a screen 601, andthe screen 601 includes a first image (for example, image 602) of thevirtual deer. The electronic device obtains an image captured by acamera. The camera may be a low-power camera installed on the electronicdevice. The electronic device determines whether the captured imageincludes a face image. As shown in FIG. 6B, if the captured imageincludes a face image, it means that the user is gazing at the screen ofthe electronic device, in which case the external object satisfies thefirst preset condition. Therefore, as shown in FIG. 6C to FIG. 6F, theelectronic device displays a second image of the virtual deer. As shownin screens 603 to 606, the electronic device displays a motion video inwhich the head of the virtual deer turns from a first direction to asecond direction and from the second direction back to the firstdirection. The first direction may be a direction of the head of thevirtual deer in the first image, for example, toward the left side ofthe display. The second direction may be a preset direction, forexample, toward the front of the display.

Optionally, the electronic device may determine whether to end displayof the second image, according to whether or not it is detected that theexternal object satisfies the second preset condition.

For example, the second preset condition may be that user gazing at theelectronic screen. That is, the second preset condition is the same asthe first preset condition. How it is detected whether a user is gazingat the screen of the electronic device can be learned from the foregoingdescription, which is not repeated herein. If the external objectsatisfies the second preset condition, display of the second image ismaintained, and a motion video from the screens 603 to 606 is displayed;if the external object does not satisfy the second preset condition,display of the first image (for example, image 602) of the virtual deeris resumed.

Different from the example in FIGS. 6A-6F where the last frame image(shown in the screen 606) of the motion video is the same as the firstimage (shown in the screen 606), the example in FIGS. 7A-7F is used toillustrate always-on-display where the last frame image (the screen 605)of the motion video is different from the second image.

Specifically, if the external object satisfies the first presetcondition, as shown in the screens 603 and 604 in FIG. 7C and FIG. 7D,the electronic device displays the second image that the head of thevirtual deer is turning from the first direction to the seconddirection. In this case, as shown in FIG. 7A and FIG. 7D, the last frameimage (as shown in the screen 604) of the second image is different fromthe first image (as shown in the screen 602). As shown in FIG. 7E andFIG. 7F, in response to the case that the external object does notsatisfy the second preset condition, the electronic device may display atransition image for linking the first image and the second image. Asshown in the screens 605 and 606, a transition image that the head ofthe virtual deer turns from the second direction back to the firstdirection is displayed.

Different from the examples in FIGS. 6A-6F and FIGS. 7A-7F where, afterthe second image is displayed, the motion video is played repeatedly tomaintain display of the second image, in response to the case that theexternal object satisfies the second preset condition, the example inFIGS. 8A-8F is used to illustrate that display of the second image mayalternatively be maintained by continuously displaying the last frameimage of the second image.

Specifically, as shown in FIG. 8D, the electronic device displays animage 607 to maintain display of the second image until the electronicdevice detects that the second preset condition is not satisfied.

It can be understood that the first display object in Example 1 is notlimited to the virtual deer but may alternatively be other objects.

It should be noted that the examples in FIGS. 6A-6F to FIGS. 8A-8F aredescribed by taking the second direction as a preset direction. It canbe understood that the second direction may alternatively be determinedaccording to a direction of a gaze position of the user on the screen.For example, when the user gazes at a first position on the screen, thesecond direction may be a direction towards the first position.Therefore, the always-on-display screen can present more changes, sothat the always-on-display screen is displayed more flexibly.

For example, the electronic device may obtain a gaze position of theuser on the screen, by using an eye tracking apparatus provided in theelectronic device. The eye tracking apparatus may include an infraredcomponent and a camera. The infrared component emits infrared light tothe eyeball, the eyeball reflects the infrared light, the cameracaptures the reflected infrared light, and the electronic apparatusanalyzes a captured image to determine the gaze position of the user onthe screen.

It should be noted that the examples shown in FIGS. 6A-6F to FIGS. 8A-8Fare described with the first preset condition and second presetcondition being user gazing at screen. It can be understood that thefirst preset condition and the second preset condition are not limitedto this. For example, as shown in FIGS. 9A-9E to FIGS. 11A-11E, thefirst preset condition and the second preset condition may be usertapping screen.

After the electronic device enters always-on-display, as shown in FIG.9A, the electronic device displays a screen 601 which includes a firstimage 602 of the virtual deer. If the electronic device has detectedthat the user taps the screen, meaning that the external objectsatisfies the first preset condition, the electronic device displays asecond image of the virtual deer as shown in FIG. 9C to FIG. 9E. Asshown in screens 901 to 904, the electronic device displays a motionvideo of the virtual deer being updated from a first posture to a secondposture and then changed from the second posture back to the firstposture.

The first posture may be a posture of the virtual deer in the firstimage, for example, the head of the virtual deer facing the left side ofthe display with all legs standing; and the second posture may be apreset posture, for example, the virtual deer raises up its head facingthe upper side of the screen with one front leg raised.

As shown in the figure, after the electronic device displays the secondimage, if the electronic device has detected within a preset period thatthe user taps the screen, meaning the external object satisfies thesecond preset condition, display of the second image is maintained; ifthe electronic device has not detected within the preset period that theuser taps the screen, meaning the external object does not satisfy thesecond preset condition, display of the first image 602 of the virtualdeer is resumed.

Similar to the example shown in FIGS. 7A-7F, the electronic device maydisplay a transition image for linking the second image with the firstimage as shown in FIG. 10D and FIG. 10E. Specifically, a posture of thevirtual deer in the first image is the first posture, and the secondimage is a motion video of the virtual deer changing from the firstposture to the second posture. As shown in screens 903 and 904, theelectronic device may display a transition image of the virtual deerchanging from the second posture back to the first posture.

Similar to the example shown in FIGS. 8A-8F, as shown in FIG. 11A toFIG. 11E, after displaying the second image, if the electronic devicehas detected that the second preset condition is satisfied, theelectronic device displays an image 905 until the second presetcondition is not satisfied, and then the electronic device resumesdisplay of the image 602. For detailed description, refer to theforegoing content, which is not repeated herein.

Optionally, the second posture may be associated with strength withwhich the user taps the screen. Specifically, the electronic devicemeasures the strength with which the user taps the screen, anddetermines the second posture according to the strength. For example, agreater strength makes greater difference between the second posture andthe first posture, or makes greater variation of the second posturerelative to the first posture.

It can be understood that one display object may correspond to onepreset condition, and may also correspond to a plurality of presetconditions. For example, a virtual deer may correspond to two presetconditions: (1) gazing at screen and (2) tapping screen.

It should be noted that this embodiment is described with a virtual deerbeing an example of the display object, but it can be understood thatthe display object is not limited to this. For example, the displayobject may be a virtual astronaut, a virtual bird, a virtual feather, orthe like, which is not limited in this embodiment. Different displayobjects may correspond to the same or different preset conditions.

Example 2:

As shown in FIGS. 12A-12E, the display object is a virtual astronaut.The first preset condition and the second preset condition are detectionof a hand waving action.

The electronic device obtains an image captured by the camera, anddetermines whether a hand waving action is detected according to thecaptured image. If a hand waving action is detected, the electronicdevice displays a second image of the virtual astronaut, as shown inFIG. 12C to FIG. 12E. In this case, the second image may be a motionvideo of the virtual astronaut waving. For details, refer to theforegoing description, which is not repeated herein.

Optionally, the electronic device may determine the second image to bedisplayed according to a hand waving speed of the user. Specifically,the electronic device identifies the hand waving speed of the user basedon the captured image, and determines a waving speed of the virtualastronaut according to the hand waving speed of the user. For example, ahigher waving speed of the user corresponds to a higher frame rate ofthe second image and a faster waving speed of the virtual astronaut.Conversely, a slower waving speed of the user corresponds to a lowerframe rate of the second image and a slower waving speed of the virtualastronaut.

It can be understood that use waving has been used as an example fordescription without limiting the preset conditions which mayalternatively be, for example, nodding, shaking the head, turning thehead, making an OK gesture, making a scissor hand gesture, making asmiling face, making a crying face, making a surprised face, or thelike. Different preset conditions may correspond to different secondimages. When the preset condition is nodding, the electronic device maydetermine a frame rate of display of the second image according to anodding speed. For example, a higher nodding speed corresponds to ahigher frame rate of the second image and a faster nodding speed of thevirtual astronaut. Conversely, a slower nodding speed of the usercorresponds to a lower frame rate of the second image and a slowernodding speed of the virtual astronaut.

The foregoing examples are described with the first preset condition andthe second preset condition being the same. The following uses Example 3to describe a scenario in which the first preset condition and thesecond preset condition are different.

Example 3:

As shown in FIGS. 13A-13F, the display object is a virtual bird. Thefirst preset condition is detection of a distance between the user andthe electronic device being less than or equal to a first presetdistance. The electronic device may determine a first distance betweenthe external object and the electronic device through a distance sensor.If the first distance between the external object and the electronicdevice is less than or equal to the first preset distance, a motionvideo of the virtual bird flying out of the screen is displayed. Thesecond preset condition is detection of a distance between the user andthe electronic device being greater than a second preset distance. Ifthe first distance between the external object and the electronic deviceis greater than the second preset distance, a motion video of thevirtual bird flying into the screen is displayed. The first presetdistance and the second preset distance may be the same or different.

Optionally, the electronic device may determine an approaching directionof the external object, and determine a flying direction of the virtualbird according to the approaching direction of the external object. Forexample, the external object approaches the electronic device toward thefront left of the screen, and the electronic device displays the secondimage of the virtual bird flying out of the screen from the left side ofthe screen.

Example 4:

As shown in FIGS. 14A-14D, the display object is a virtual feather. Thefirst preset condition and the second preset condition are user shakingthe electronic device.

The electronic device may obtain an acceleration of the electronicdevice through an acceleration sensor, and determine a shaking frequencyof the electronic device based on the acceleration. If a first shakingfrequency is greater than a preset shaking frequency, it is consideredthat the user is shaking the electronic device, meaning that theexternal object satisfies the first preset condition or the secondpreset condition. As shown in screens 1401 to 1403, the electronicdevice may display the second image of the virtual feather floating onthe screen.

Optionally, to prevent pixels in the display from malfunctioning due tolong-time stay in a normally on state, when the second image isdisplayed, pixels that are lit when the first image is displayed can beinhibited from being lit. Display positions of the display objects maybe different. For example, referring to FIG. 15A and FIG. 15B, filledpixels in FIG. 15A are pixels that are lit to display the virtualfeather which is still; and filled pixels in FIG. 15B are pixels thatare lit to display the virtual feather which is floating. The pixels litwhen the second image is displayed are different from the pixels litwhen the first image is displayed.

Optionally, the electronic device further determines the floating speedof the virtual feather displayed, according to the shaking frequency ofthe electronic device. For details, refer to the foregoing content,which is not repeated herein.

It should be noted that Examples 1 to 4 are described by using a user asthe external object, and it can be understood that the external objectmay alternatively be an electronic device.

Example 5:

As shown in FIGS. 16A-16C, the display object is time information, andthe first preset condition and the second preset condition are anexternal device such as a watch being connected to the electronicdevice.

Specifically, after the electronic device enters always-on-display, asshown in FIG. 16B, the electronic device displays a screen 1601 whichincludes time information: “08:08”, “Tue, October 15” and “29, 8th LunarMonth, Gengzi”. It can be understood that time information fordisplaying a current time and power information for displaying remainingpower may vary with the elapse of the time and the change of theremaining power. At this point, a display style of time on the screen1601 is style A.

If it is detected that a watch is connected to the mobile phone, meaningthat the external object satisfies the first preset condition, theelectronic device displays the second image. The second image may bedetermined according to a time display style of the watch.

Specifically, in response to detecting that the first preset conditionis satisfied, the electronic device obtains display style information ofthe watch, where the display style information of the watch is used tocharacterize a display style (for example, style B) of the watch. Theelectronic device determines to display time in style B based on thisinformation. That is, the second image includes time displayed in styleB. It can be understood that, as shown in FIGS. 17A-17C, if the displaystyle of the watch is style C, the second image of the electronic devicemay include time displayed in style C.

It should be noted that, as shown in FIGS. 18A-18C, when time isdisplayed in style B, other information such as date and remaining powermay not be displayed.

It should be noted that, in Examples 1 to 5, the display objects of thefirst image and the second image are the same display object. It can beunderstood that the display objects of the first image and the secondimage may alternatively be different. The following gives description byusing Example 6.

Example 6:

After the electronic device enters always-on-display, as shown in FIG.19B, the electronic device displays a screen 1601, and the electronicdevice displays a first image (for example, image 1901) of a firstdisplay object.

If an external object satisfies a first preset condition, the electronicdevice displays a second image (for example, image 1902) which includesa second display object. As shown in the screen 1601 and a screen 1903,the second display object, which is a virtual heart, is different fromthe first display object.

Optionally, the electronic device may determine the second imageaccording to heart rate information detected by a watch. Specifically,the electronic device receives the heart rate information sent by thewatch, and generates the second image according to the heart rateinformation, where the second image is a motion video of the virtualheart beating. A beating frequency of the heart in the second image anda waveform displaying a heart rate curve may be determined according tothe heart rate information.

It can be understood that the external device is not limited to thewatch or sports bracelet in Examples 5 and 6, but may alternatively beother external devices. The information received by the electronicdevice and sent by the external device is also not limited to the heartrate in the examples, but may alternatively be other biologicalinformation, weather information, or location information. The otherbiological information may include, but is not limited to, at least oneof the following: calories and number of steps. The weather informationmay include, but is not limited to, at least one of the following:temperature and weather. The weather is, for example, light rain, sunny,cloudy, or heavy snow. For example, when the information is the numberof steps of the user, the second display object may be a virtual user,and the second image of the second display object may be a motion videoof the virtual user running. For another example, when the informationis weather information, the second display object may be an object usedto represent weather information. For example, when the weatherinformation indicates that the current weather is light rain, the seconddisplay object may be a virtual raindrop, and the second image may be amotion video of the virtual raindrop dropping.

The foregoing has described the charging method provided in theembodiments of this application. The following is to describe anapparatus provided in the embodiments of this application.

FIG. 20 is a schematic structural diagram of an always-on-displayapparatus according to an embodiment of this application. Referring toFIG. 20 , the charging apparatus includes: a processing module 2001 anda display module 2002.

The display module 2002 is applied to an always-on-display screen. Thealways-on-display screen includes a first image of a first displayobject; in response to detecting by the processing module 2001 that anexternal object satisfies a first preset condition, the display module2001 is configured to display a second image of a second display object,where the second image is different from the first image.

Optionally, after the display module 2001 displays the second image, theprocessing module 2001 is further configured to: maintain display of thesecond image if it has been detected that the external object satisfiesa second preset condition; and resume display of the first image if ithas not been detected that the external object satisfies a second presetcondition.

Optionally, when the second image is a motion video, the processingmodule 2001 is specifically configured to maintain display of the lastframe image of the motion video.

Optionally, before the processing module 2001 resumes display of thefirst image, the display module 2002 is further configured to display atransition image for linking the second image with the first image.

Optionally, before the display module 2002 displays the first image, thedisplay module 2002 is further configured to display an initial image,where the initial image is used for linking display of the first image.

Optionally, the first preset condition and the second preset conditioninclude one or more of the following: user waving, nodding, shaking thehead, gazing at screen of the always-on-display apparatus, tappingscreen of the always-on-display apparatus, or shaking thealways-on-display apparatus, or an external device being connected.

Optionally, before the display module 2002 displays the second image ofthe second display object, the processing module 2001 is furtherconfigured to: obtain information about the external object, anddetermine a display parameter of the second image based on theinformation about the external object; and the display module 2002 isspecifically configured to display the second image according to thedisplay parameter.

Optionally, the display parameter of the second image includes one ormore of the following: a header orientation parameter of the seconddisplay object in the second image, a posture parameter of the seconddisplay object in the second image, a display frame rate of the secondimage, a display position parameter of the second display object in thesecond image, a style of the second display object in the second image,and a waveform parameter of the second display object in the secondimage.

Optionally, the first display object is the same as the second displayobject; or the first display object is different from the second displayobject.

Optionally, the first preset condition is the same as the second presetcondition, or the first preset condition is different from the secondpreset condition.

Optionally, the apparatus further includes a transceiver module 2003.The first preset condition is an external device being connected, andthe processing module 2001 is specifically configured to: receiveinformation sent by the external device via the transceiver module 2003;and display the second image of the second display object according tothe information via the display module 2002.

Optionally, when the first preset condition is an external device beingconnected, and the information about the external object includesbiological information sent by the external device, the processingmodule 2001 is specifically configured to determine a display frame rateof the second image based on the biological information; and the displaymodule 2002 is specifically configured to display the second image atthe display frame rate.

Optionally, when the first preset condition is an external device beingconnected, and the information about the external object includes styleinformation sent by the external device, the processing module 2001 isspecifically configured to determine a style of the second displayobject based on the style information; and the display module 2002 isspecifically configured to display the second display object in thestyle, where the second image includes the second display objectdisplayed in the style.

Optionally, the processing module 2001 is further configured to: obtainan interactive mode selection instruction input by a user, and determinethe first display object matching the interactive mode according to theinteractive mode selection instruction.

The charging apparatus in this embodiment can implement the technicalsolutions shown in the foregoing method embodiments, with similarimplementation principles and beneficial effects, which are not repeatedherein.

FIG. 21 is a schematic structural diagram of a terminal device accordingto an embodiment of this application. Referring to FIG. 21 , theterminal device in this embodiment may include: a processor 2101 and adisplay 2102, where the processor 2101 and the display 2102 maycommunicate with each other through a communications bus 2103.

The display 2101 is applied to display an always-on-display screen. Thealways-on-display screen includes a first image of a first displayobject; in response to detecting by the processor 2101 that an externalobject satisfies a first preset condition, the display 2001 isconfigured to display a second image of a second display object, wherethe second image is different from the first image.

Optionally, after the display 2102 displays the second image, theprocessor 2101 is further configured to: maintain display of the secondimage if it has been detected that the external object satisfies asecond preset condition; and resume display of the first image if it hasnot been detected that the external object satisfies a second presetcondition.

Optionally, the second image is a motion video, and the processor 2101is specifically configured to maintain display of the last frame imageof the motion video.

Optionally, before the processor 2101 resumes display of the firstimage, the display 2102 is further configured to display a transitionimage for linking the second image with the first image.

Optionally, before the display 2102 displays the first image, thedisplay 2102 is further configured to display an initial image, wherethe initial image is used for linking display of the first image.

Optionally, the first preset condition and the second preset conditioninclude one or more of the following: user waving, nodding, shaking thehead, gazing at screen of the always-on-display apparatus, tappingscreen of the always-on-display apparatus, or shaking thealways-on-display apparatus, or an external device being connected.

Optionally, before the display 2102 displays the second image of thesecond display object, the processor 2101 is further configured to:obtain information about the external object, and determine a displayparameter of the second image based on the information about theexternal object; and the display 2102 is specifically configured todisplay the second image according to the display parameter.

Optionally, the display parameter of the second image includes one ormore of the following: a header orientation parameter of the seconddisplay object in the second image, a posture parameter of the seconddisplay object in the second image, a display frame rate of the secondimage, a display position parameter of the second display object in thesecond image, a style of the second display object in the second image,and a waveform parameter of the second display object in the secondimage.

Optionally, the first display object is the same as the second displayobject; or the first display object is different from the second displayobject.

Optionally, the first preset condition is the same as the second presetcondition, or the first preset condition is different from the secondpreset condition.

Optionally, the apparatus further includes a transceiver 2103. The firstpreset condition is an external device being connected, and theprocessor 2101 is specifically configured to: receive information sentby the external device via the transceiver 2104; and display the secondimage of the second display object according to the information via thedisplay 2102.

Optionally, when the first preset condition is an external device beingconnected, and the information about the external object includesbiological information sent by the external device, the processor 2101is specifically configured to determine a display frame rate of thesecond image based on the biological information; and the display 2102is specifically configured to display the second image at the displayframe rate.

Optionally, when the first preset condition is an external device beingconnected, and the information about the external object includes styleinformation sent by the external device, the processor 2101 isspecifically configured to determine a style of the second displayobject based on the style information; and the display 2102 isspecifically configured to display the second display object in thestyle, where the second image includes the second display objectdisplayed in the style.

Optionally, the processor 2101 is further configured to: obtain aninteractive mode selection instruction input by a user, and determinethe first display object matching the interactive mode according to theinteractive mode selection instruction.

The electronic device in this embodiment can implement the technicalsolutions shown in the foregoing method embodiments, with similarimplementation principles and beneficial effects, which are not repeatedherein.

An embodiment of this application further provides a non-transitorycomputer-readable storage medium storing a computer instruction, wherethe storage medium is configured to store a computer program, and thecomputer program is used to implement the always-on-display methoddescribed in the foregoing embodiments.

An embodiment of this application further provides a computer programproduct, where the computer program product includes an instruction, andwhen the instruction is executed, a computer is enabled to execute thealways-on-display method described in the foregoing embodiments.

In addition, an embodiment of this application further provides agraphical user interface (graphical user interface, GUI) on anelectronic device, where the graphical user interface specificallyincludes the graphical user interface displayed by the electronic devicewhen the foregoing method embodiments are executed.

An embodiment of this application provides a chip. The chip isconfigured to support an electronic device in implementing the functionsdemonstrated in the embodiments of this application. The chip isspecifically applied to a chip system which may include a chip orinclude a chip and other discrete devices. When the foregoing method isimplemented by a chip inside an electronic device, the chip includes aprocessing unit. Further, the chip may further include a communicationsunit, and the processing unit may be, for example, a processor. When thechip includes a communications unit, the communications unit may be, forexample, an input/output interface, a pin, or a circuit. The processingunit executes all or some of the actions performed by the processingmodule in the embodiments of this application, and the communicationsunit may execute corresponding receiving or sending actions. In anotherspecific embodiment, the processing module of the electronic device inthis application may be a processing unit of a chip.

All or some of the steps for implementing the foregoing methodembodiments may be completed by a program instructing relevant hardware.The program may be stored in a readable memory. When the program isexecuted, the steps in the method embodiments are executed; and thememory (storage medium) includes: a read-only memory (read-only memory,ROM), a RAM, a flash memory, a hard disk, a solid-state hard disk, amagnetic tape (magnetic tape), a floppy disk (floppy disk), an opticaldisc (optical disc), or any combination thereof.

The embodiments of this application are described with reference to theflowcharts and/or block diagrams of the method, device (system), andcomputer program product according to the embodiments of thisapplication. It should be understood that computer program instructionsmay be used to implement each process and/or each block in theflowcharts and/or the block diagrams, or a combination of processesand/or blocks in the flowcharts and/or the block diagrams. Thesecomputer program instructions may be provided to a general-purposecomputer, a special-purpose computer, an embedded processor, or aprocessing unit of any other programmable data processing device toproduce a machine, such that the instructions, which are executed by theprocessing unit of the computer or any other programmable dataprocessing device, create means for implementing a specific function inone or more processes in the flowcharts and/or in one or more blocks inthe block diagrams.

These computer program instructions may be stored in a computer-readablememory that can direct the computer or any other programmable dataprocessing device to function in a particular manner, such that theinstructions stored in the computer-readable memory create an article ofmanufacture including an instruction apparatus which implements aspecific function in one or more processes in the flowcharts and/or inone or more blocks in the block diagrams.

These computer program instructions may be loaded onto a computer oranother programmable data processing device, so that a series ofoperations and steps are performed on the computer or the anotherprogrammable device, thereby generating computer-implemented processing.Therefore, the instructions executed on the computer or the anotherprogrammable device provide steps for implementing a specific functionin one or more processes in the flowcharts and/or in one or more blocksin the block diagrams.

Obviously, a person skilled in the art can make various modificationsand variations to the embodiments of this application without departingfrom the spirit and scope of this application. This application isintended to cover these modifications and variations provided that theyfall within the scope of protection defined by the following claims andtheir equivalent technologies of this application.

In this application, the term “include” and its variants may meannon-limiting inclusion; and the term “or” and its variants may mean“and/or”. The terms “first”, “second”, and the like in this applicationare used to distinguish between similar objects instead of describing aspecific order or sequence. In this application, “a plurality of” meanstwo or more than two. “And/or” describes an association relationship ofassociated objects and represents that three relationships may exist.For example, A and/or B may represent the following three cases: only A,both A and B, and only B. The character “/” generally indicates an “or”relationship between the associated objects before and after thecharacter.

What is claimed is:
 1. An electronic device, comprising: a touchscreen;a memory; a display; and one or more processors, wherein thetouchscreen, the memory, and the display are coupled to the processor,the memory stores computer program code, the computer program codecomprises computer instructions, and when the computer instructions areexecuted by the processor, the electronic device is enabled to performfollowing operations: displaying, an always-on-display screen, whereinthe always-on-display screen comprises a first image of a first displayobject; in response to a first operation of a user gazing at a screen ofthe electronic device, displaying, a second image of the first displayobject on the always-on-display screen, wherein the second image showsthe first display object different from the first image, and the secondimage is a motion video or a still image; and in response to a secondoperation of a user tapping the screen of the electronic device,displaying, a third image of the first display object on thealways-on-display screen, wherein the third image shows the firstdisplay object different from the first image.
 2. The electronic deviceaccording to claim 1, wherein the second image is continuous in contentwith the first image, and the third image is continuous in content withthe first image.
 3. The electronic device according to claim 1, whereinthe second image is a first motion video, the third image is a secondmotion video, and the first motion video is different from the secondmotion video.
 4. The electronic device according to claim 3, wherein thelast frame of the first motion video is the same as the last frame ofthe second motion video.
 5. The electronic device according to claim 1,wherein after displaying the second image of the first display object onthe always-on-display screen, the electronic device is enabled tofurther perform following operations: in response to constantlyinputting the first operation by the user, maintaining, displaying ofthe second image on the always-on-display screen.
 6. The electronicdevice according to claim 1, wherein after displaying the second imageof the first display object on the always-on-display screen, theelectronic device is enabled to further perform following operations: inresponse to stopping the first operation by the user, ending, displayingof the second image on the always-on-display screen, and resuming,displaying of the first image on the always-on-display screen.
 7. Theelectronic device according to claim 1, wherein the electronic device isenabled to further perform following operations: in response to thefirst operation ending, resuming displaying of the first image on thealways-on-display screen; and in response to continuation of the firstoperation, repeating displaying of the second image on thealways-on-display screen.
 8. The electronic device according to claim 1,wherein the electronic device is enabled to further perform followingoperations: in response to the first operation ending, resumingdisplaying of the first image on the always-on-display screen; and inresponse to the continuation of the first operation, continuouslydisplaying a last frame of the second image on the always-on-displayscreen.
 9. The electronic device according to claim 1, wherein thealways-on-display screen is displayed with the first display object in achangeable position.
 10. The electronic device according to claim 1,wherein an image on the always-on-display screen is displayed bylighting up some of pixels in the screen of the electronic device. 11.The electronic device according to claim 1, wherein thealways-on-display screen comprises one or more of the followinginformation: time, date, or battery power.
 12. The electronic deviceaccording to claim 1, wherein the electronic device comprises a camera.13. The electronic device according to claim 12, wherein the electronicdevice further comprises an infrared component.
 14. The electronicdevice according to claim 12, wherein the electronic device is enabledto further perform following operations: capturing, an image captured bythe camera; when the captured image comprises a face image, determining,to display the second image of the first display object on thealways-on-display screen.
 15. The electronic device according to claim1, wherein the electronic device is enabled to further perform followingoperations: displaying, a first settings screen, wherein the firstsettings screen comprises a first option, and the first option indicatesan interactive mode of the always-on-display screen is enabled when auser gazing at the screen of the electronic device or tapping the screenof the electronic device.
 16. The electronic device according to claim1, wherein the electronic device is enabled to further perform followingoperations: displaying, a second settings screen, wherein the secondsettings screen comprises a preview of at least one of the first image,the second image and the third image of the first display object. 17.The electronic device according to claim 1, wherein the first displayobject is a virtual object, and the virtual object comprises one or moreof a virtual deer, a virtual astronaut, a virtual feather, a virtualbird, or a virtual user.
 18. An always-on-display method, comprising:displaying, by an electronic device, an always-on-display screen,wherein the always-on-display screen comprises a first image of a firstdisplay object; in response to a first operation of a user gazing at ascreen of the electronic device, displaying, by the electronic device, asecond image shows the first display object the first display object onthe always-on-display screen, wherein the second image is different fromthe first image to provide a motion associated with the first displayobject while the user is gazing at the screen; and in response to asecond operation of a user tapping the screen of the electronic device,displaying, by the electronic device, a third image of the first displayobject on the always-on-display screen, wherein the third image showsthe first display object different from the first image.
 19. The methodaccording to claim 18, wherein the second image is continuous in contentwith the first image, and the third image is continuous in content withthe first image.
 20. A non-transitory computer-readable storage mediumstoring computer instructions, wherein when the computer instructionsare run on an electronic device, the electronic device is enabled toperform following operations: displaying, an always-on-display screen,wherein the always-on-display screen comprises a first image of a firstdisplay object; in response to a first operation of a user gazing at ascreen of the electronic device, displaying, a second image of the firstdisplay object on the always-on-display screen, wherein the second imageshows the first display object different from the first image to providea motion associated with the first display object while the user isgazing at the screen; and in response to a second operation of a usertapping the screen of the electronic device, displaying, a third imageof the first display object on the always-on-display screen, wherein thethird image shows the first display object different from the firstimage.